<div class="post">
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="title">
                <h3 class="panel-title">
                    <?php echo CHtml::link(CHtml::encode(ucfirst($data->title)), $data->url); ?>
                </h3>
            </div>
        </div>
        <div class="panel-body">
            <div class="content well">
                <?php
                $this->beginWidget('CMarkdown', array('purifyOutput' => true));
                echo $data->content;
                $this->endWidget();
                ?>
            </div>
        </div>
        <div class="panel-footer">
            <?php echo Yii::t('app', 'post.postDate') . Yii::app()->dateFormatter->formatDateTime($data->create_time, 'long', null) ?>
            <div class="nav">
                <?php echo CHtml::htmlButton(Yii::t('app', 'comments.comments', array('{no}' => $data->commentCount)), array('submit' => $data->url . '#comments', 'class' => 'btn btn-primary', 'type' => 'submit')); ?>
                <b>Tags:</b>
                <?php echo implode(', ', $data->tagLinks); ?>
            </div>
        </div>
    </div>

</div>
